<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>
<body>
    <!-- 1.行内式 -->
    <!-- <input type = "button" value = "点我一下" onclick = "alert('哈哈')"> -->
</body>
    <!-- 2.内嵌式 -->
    <script>
        alert("hhhh!");
    </script>
</html>